<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>用户注册 | Peacock Note</title>
    <link rel="icon"  th:href="@{/images/icons8-peacock-dotted-16.png}" type="image/png">
</head>
<body>
<h2>用户注册</h2>
<form th:action="@{/user/register}" th:object="${user}" method="post">
    <label>用户名：</label>
    <input type="text" th:field="*{username}" required/><br/><br/>

    <label>密码：</label>
    <input type="password" th:field="*{password}" required/><br/><br/>

    <button type="submit">注册</button>
</form>
</body>
</html>